翻訳と辞書
Words near each other
・ Composite index
・ Composite index (database)
・ Composite Index of National Capability
・ Composite laminates
・ Composite liner
・ Composite lumber
・ Composite material
・ Composite measure
・ Composite monarchy
・ Composite monitor
・ Composite muscle
・ Composite number
・ Composite odontoma
・ Composite order
・ Composite overwrapped pressure vessel
Composite pattern
・ Composite plate
・ Composite portrait
・ Composite print
・ Composite propeller
・ Composite reaction texturing
・ Composite reflectivity
・ Composite repairs
・ Composite rules shinty–hurling
・ Composite ship
・ Composite Software
・ Composite structure diagram
・ Composite Superman
・ Composite Training Unit Exercise
・ Composite transposon


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Composite pattern : ウィキペディア英語版
Composite pattern
In software engineering, the composite pattern is a partitioning design pattern. The composite pattern describes that a group of objects is to be treated in the same way as a single instance of an object. The intent of a composite is to "compose" objects into tree structures to represent part-whole hierarchies. Implementing the composite pattern lets clients treat individual objects and compositions uniformly.
== Motivation ==
When dealing with Tree-structured data, programmers often have to discriminate between a leaf-node and a branch. This makes code more complex, and therefore, error prone. The solution is an interface that allows treating complex and primitive objects uniformly. In object-oriented programming, a composite is an object designed as a composition of one-or-more similar objects, all exhibiting similar functionality. This is known as a "has-a" relationship between objects. The key concept is that you can manipulate a single instance of the object just as you would manipulate a group of them. The operations you can perform on all the composite objects often have a least common denominator relationship. For example, if defining a system to portray grouped shapes on a screen, it would be useful to define resizing a group of shapes to have the same effect (in some sense) as resizing a single shape.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Composite pattern」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.